using IoCBattle.Lifestyle.Infratrucsion;
using IoCBattle.Lyrics.Istrantroctum;
using StructureMap;

namespace IoCBattle.Core.Infrastrustoir
{
    public class RootHost 
    {
        private readonly Container _container;
        private readonly LifestyleSubSystem _lifeStyleSubSystem;
        private readonly LyricsSubSystem _lyricsSubSystem;

        public RootHost()
        {
            _container = new Container(new RootRegistry());
            _lifeStyleSubSystem = new LifestyleSubSystem(_container.GetNestedContainer());
            _lyricsSubSystem = new LyricsSubSystem(_container.GetNestedContainer());
        }

        public void Start()
        {
            _lifeStyleSubSystem.Start();
            _lyricsSubSystem.Start();
        }
    }
}